// 基于分模块的数据再次映射 -> 目的 快速去获取值 (集中化)
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username,
  userId: state => state.user.userInfo.userId,
  routes: state => state.user.routes
}
export default getters

